package com.kuang.service;


import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service //放到spring中
public class UserService {
    //要去注册中心拿
    @Reference
    TicketService ticketService;

    public String buyTicket(){
        return ticketService.getTicket();
    }

    public String buyTicket2(){
        return ticketService.getTicket2();
    }

}
